package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class FishingUserTO implements Parcelable {
	// 用户ID
	@SerializedName("uid")
	private long uid;
	// 头像
	@SerializedName("avatar")
	private String avatar;
	// 昵称
	@SerializedName("username")
	private String nickname;
	// 性别
	@SerializedName("sex")
	private int sex;
	// 参与时间,单位秒
	@SerializedName("dateline")
	private long joinedTime;

	public FishingUserTO() {
	}

	public FishingUserTO(Parcel source) {
		// TODO 需要时再做序列化
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO 需要时再做序列化
	}

	public static final Creator<FishingUserTO> CREATOR = new Creator<FishingUserTO>() {

		@Override
		public FishingUserTO[] newArray(int size) {
			return new FishingUserTO[size];
		}

		@Override
		public FishingUserTO createFromParcel(Parcel source) {
			return new FishingUserTO(source);
		}
	};

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public long getJoinedTime() {
		return joinedTime;
	}

	public void setJoinedTime(long joinedTime) {
		this.joinedTime = joinedTime;
	}

}
